package com.goodluck.goodluckim.utils;

import android.os.Environment;

import com.goodluck.goodluckim.BuildConfig;

import java.io.File;

/**
 * Created by wyj on 2018/9/7.
 */

public class FilePathManager {
    /**
     * 根目录名称
     */
    public static final String ROOT_DIR = "goodluck";
    /**
     * 根录经
     */
    public static final String ROOT_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + ROOT_DIR + File.separator;

    /**
     * 数据库名称
     */
    private static final String DATA_BASE_NAME = "goodluck.db";

    /**
     * 获取db名称
     *
     * @param account 账号
     * @return
     */
    public static final String getDataBaseName(String account) {
        if (BuildConfig.BUILD_TYPE.equals("release")) {
            return account + DATA_BASE_NAME;
        } else {
            return account + "debug" + DATA_BASE_NAME;
        }
    }
}
